#ifndef LOGINWIDGET_H
#define LOGINWIDGET_H

#include <QWidget>
#include <QLabel>
#include <QLineEdit>
#include <QCheckBox>
#include <QPushButton>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QUdpSocket>
#include <QCryptographicHash>
#include <QMessageBox>

namespace Ui {
class LoginWidget;
}

class LoginWidget : public QWidget
{
    Q_OBJECT

public:
    explicit LoginWidget(QWidget *parent = 0);
    ~LoginWidget();
private slots:
    void rgsBtnSlot();
    void loginBtnSlot();
    void on_readyread_udp();
private:
    Ui::LoginWidget *ui;
    QLabel *label;//头像
    QLineEdit *nameLineEdit;//用户名
    QLineEdit *passwordLineEdit;//密码
    QCheckBox *autoLoginBox;//自动登录
    QCheckBox *rmbPasswordBox;//记住密码
    QPushButton *findPasswordBtn;//找回密码
    QPushButton *loginBtn;//登录
    QPushButton *registBtn;//注册
    QPushButton *imgBtn;//二维码
    
    QHBoxLayout *labelLayout;
    QHBoxLayout *checkBoxLayout;
    QVBoxLayout *mainLayout;

    QUdpSocket *sd;
    
};

#endif // LOGINWIDGET_H
